﻿@using Microsoft.Ajax.Utilities
@using sourcephi.Models
@using Webdiyer.WebControls;
@using Webdiyer.WebControls.Mvc;
@model PagedList<dafen>

@{
    Layout = null;
}

<!DOCTYPE html>

<html>
<head>
    <meta name="viewport" content="width=device-width" />
    <title>Dftongji</title>
    <link href="../../Content/mystyle.css" rel="stylesheet" type="text/css" />
     <link href="~/uploadify/uploadify.css" rel="stylesheet" />
    <script src="~/uploadify/jquery-1.9.1.min.js"></script>
    <script src="~/uploadify/jquery.uploadify.min.js"></script>
    <link href="../../Content/SpryAssets/SpryTabbedPanels.css" rel="stylesheet" type="text/css" />
    <script src="../../Scripts/SpryAssets/SpryTabbedPanels.js" type="text/javascript"></script>
    <link rel="stylesheet" type="text/css" href="../../Content/pagerstyles.css"/>
 @* <script type="text/javascript" src="../../Scripts/jquery.tmpl.min.js"></script>
    <script type="text/x-jquery-tmpl" id="trTemp">        
    </script>
    <script type="text/javascript">
        $(function() {
            $.ajaxSetup({ cache: false });
            loadPageList(1);
        })

        function loadPageList(pageIndex) {
            $.getJSON("/Dafen/List" + pageIndex, null, function(jsonData) {
                if (jsonData.Statu == "ok") {
                    $("#trTemp").tmpl(jsonData.data.PagedData).appendTo("#tbList");
                }
            });
        }
    </script>*@
</head>
<center>
<body>
  <div id="container" > 
     <div id="content_1">
	    <div id="index_logo">培训管理系统</div>
   <div id="index_menu_f"> 
      <a href="/Home/Index" class="c1">首页   </a>|
	    <a href="/Login/Index" class="c1">登陆   </a>|
		 <a href="#" class="c1">注册   </a>|
		  <a href="#" class="c1">管理员入口   </a>
   </div>
   <div class="menu">
        <ul>
		<li><a href="index.html">人员</a></li>
        <li><a href="about.html">培训<!--[if IE 7]><!--></a><!--<![endif]-->
        <!--[if lte IE 6]><table><tr><td><![endif]-->
            <ul>
            <li><a href="#" title="">岗前培训</a></li>
            <li><a href="#" title="">复习培训</a></li>
            <li><a href="#" title="">熟练培训</a></li>
			<li><a href="#" title="">附加培训</a></li>
            </ul>
        <!--[if lte IE 6]></td></tr></table></a><![endif]-->
        </li>
        <li><a href="#">职称<!--[if IE 7]><!--></a><!--<![endif]-->
        <!--[if lte IE 6]><table><tr><td><![endif]-->
            <ul>
            <li><a href="" title="">评聘情况汇总</a></li>
            <li><a href="/Dafen/updgcs" title="">评审资料上传</a></li>
            <li><a href="/Dafen/Dftongji" title="">在线评估</a></li>
            
            </ul>
        <!--[if lte IE 6]></td></tr></table></a><![endif]-->
        </li>
        <li><a href="">执照</a></li>
        <li><a href="">统计</a></li>
        
        </ul>
    </div>
	 </div>
	 <div id="gcs_left">
	    <div id="gcs_left_1">职称 </div> 
		 <div id="gcs_left_2"> <a href="gcs_1.html" class="i_6" >·评聘情况汇总 </a>
		<a href="/Dafen/updgcs" class="i_6">·资格评审资料上传</a>
		 <a href="/Dafen/Dftongji" title="" class="i_6"><font color="#990000"><b>·在线评估</b></font></a></div> 
	 </div>
	 
	 <div id="gcs_right">
	   <div id="nav_info"> <a href="index.html" class="i_7">首页</a>>>职称>>在线评估 </div>
	   <div id="nav_info_1">欢迎您：@Session["loginname"] </div>
	   <div id="info_all">
		    <div id="title_info"><img src="~/Content/images/reddot.png" style="line-height:25px; margin-left:10px; margin-right:10px;" /><a href="#">本年度评聘人数说明</a>&nbsp;&nbsp;@Html.ActionLink("工程师资料上传", "Updgcs")   </div>
            
         <div id="TabbedPanels1" class="TabbedPanels">
              <ul class="TabbedPanelsTabGroup">
                <li class="TabbedPanelsTab" tabindex="0">请为下列工程技术人员打分</li>
                <li class="TabbedPanelsTab" tabindex="0">情况汇总</li>
              </ul>
              <div class="TabbedPanelsContentGroup">
                <div class="TabbedPanelsContent"><div id="table_2"> <table  width="1020"    align="left" rules="all" cellspacing="0" cellpadding="0" border="1" bordercolor="#ececfb"  bgcolor="#FFFFFF" >
  <tbody>
      <tr   bgcolor="#00664c" class="i_10"   align="center"  > 
   
          <td width="80"  height="30" ><b>姓名</b></td>
          <td width="150"><b>评委评分</b></td>
          <td width="150"><b>部门评分</b></td>
          <td width="150"><b>群众评分</b></td>
      </tr>
       @foreach (dafen dfDafen in Model as List<dafen>)
       {
           int tot = 0;
           double ros = 0.0;
           <tr style="cursor: hand"  onMouseOut=" this.style.backgroundColor = '#FFFFff' "onMouseOver=" this.style.backgroundColor = '#EEFFFF' " align="center">
          
               <td height="30px">@dfDafen.renyuan.name</td>
               @if (dfDafen.评委打分 != null)
               {
                   if (Session["roletype"] == "2")
                   {
                       string[] numbers = dfDafen.评委打分.Split(',');
                       for (int i = 0; i < numbers.Count(); i++)
                       {
                           ros += double.Parse(numbers[i]);
                       }
                       ros = ros / numbers.Count();
                       <td><font color="#0000FF"><a href="/dafen/pwdf?dfid=@dfDafen.nid">@ros</a></font></td>
                   }
                   else
                   {
                       <td><font color="#0000FF">@ros</font></td>
                   }
               }
               else
               {
                   if (Session["roletype"] == "2")
                   {
                       <td><a href="/dafen/pwdf?dfid=@dfDafen.nid">未打分</a></td>
                   }
                   else
                   {
                       <td>未打分</td>
                   }
               }
               @if (dfDafen.部门打分 != null)
               {
                   if (Session["roletype"] != "4" )
                   {
                       <td><font color="#0000FF"><a href="/dafen/bmdf_ys?mid=@dfDafen.nid">@dfDafen.部门打分</a></font></td>
                   }
                   else
                   {
                       <td><font color="#0000FF">@dfDafen.部门打分</font></td>
                   }
               
              
               }
               else
               {
                   if (Session["roletype"] != "4" && Session["roletype"] != "2")
                   {
                       <td><a href="/dafen/bmdf?dfid=@dfDafen.nid">未打分</a></td>
                   }
                   else
                   {
                       <td>未打分</td>
                   }
               }
               @if (dfDafen.群众打分 != null)
               {
                   string[] numbers = dfDafen.群众打分.Split(',');
                   for (int i = 0; i < numbers.Count(); i++)
                   {
                       tot += int.Parse(numbers[i]);
                   }
                   tot = tot/numbers.Count();
                   <td><font color="#0000FF"><a href="/dafen/qzdf?dfid=@dfDafen.nid">@tot</a></font></td>
               }
               else
               {
                   <td><a href="/dafen/qzdf?dfid=@dfDafen.nid">未打分</a></td>
               }
           </tr>
       }
	</tbody>
	</table>	
		</div>
        @*这是分页控件mvcpager*@
        @Html.Pager(Model, new PagerOptions { PageIndexParameterName = "id", CurrentPagerItemTemplate = "<span class=\"current\">{0}<span>", DisabledPagerItemTemplate = "<span class=\"disabled\">{0}</span>", Id = "flickrpager" })</div>
                <div class="TabbedPanelsContent">
                
                    <div id="table_3">
                        <table id="tbList" width="1020"   align="left"  cellspacing="0" cellpadding="0" border="0"   bgcolor="#FFFFFF"  class="i_11">
                            <tbody>
                                <tr bgcolor="#ffff99"    align="center"   >
                                    <td width="80"  height="30" ><b>姓名</b></td>
                                    <td width="114"><b>部门评分</b></td>
                                    <td width="114"><b>群众评分</b></td>
                                    <td width="114"><b>评委评分</b></td>
                                    <td width="172"  ><b>履职情况</b></td>
                                    <td width="171"><b>工程师工作总结</b></td>
                                    <td width="155"><b>其他</b></td>
                                    <td width="100"><b>总分</b></td>
                                </tr>
                                @foreach (dafen dfDafen in Model as List<dafen>)
                                {
                                    int tot = 0;
                                    double ros = 0.0;
                                    <tr style="cursor: hand"  onMouseOut=" this.style.backgroundColor = '#FFFFff' "onMouseOver=" this.style.backgroundColor = '#EEFFFF' " align="center">
                                     
                                         
                                        <td height="30px">@dfDafen.renyuan.name</td>
                                        @if (dfDafen.部门打分 != null)
                                        {<td>@dfDafen.部门打分</td>}
                                        else
                                        {<td>未打分</td>}
                                        @if (dfDafen.群众打分 != null)
                                        {
                                            string[] numbers = dfDafen.群众打分.Split(',');
                                            for (int i = 0; i < numbers.Count(); i++)
                                            {
                                                tot += int.Parse(numbers[i]);
                                            }
                                            tot = tot / numbers.Count();
                                            <td>@tot</td>
                                        }
                                        else
                                        {<td>未打分</td>}
                                        @if (dfDafen.评委打分 != null)
                                        {
                                            string[] numbers = dfDafen.评委打分.Split(',');
                                            for (int i = 0; i < numbers.Count(); i++)
                                            {
                                                ros += double.Parse(numbers[i]);
                                            }
                                            ros = ros / numbers.Count();
                                            <td>@ros</td>
                                        }
                                        else
                                        {<td>未打分</td>}
                                        @if (dfDafen.履行职责 != null)
                                        {
                                            string addj = dfDafen.履行职责.Substring(dfDafen.履行职责.LastIndexOf("."));
                                            <td><a href="/Dafen/DownFile?filePath=@dfDafen.履行职责&fileName=履行职责.@addj">查看</a></td> @*@dfDafen.履行职责*@
                                        }
                                        else
                                        {
                                            <td>未上传</td>
                                        }
                                        @if (dfDafen.工程师总结 != null)
                                        {
                                            string addf = dfDafen.工程师总结.Substring(dfDafen.工程师总结.LastIndexOf("."));
                                            <td><a href="/Dafen/DownFile?filePath=@dfDafen.工程师总结&fileName=工程师总结.@addf">查看</a></td>
                                        }
                                        else
                                        { <td>未上传</td>}
                                        <td></td>
                                        @if (dfDafen.群众打分 != null && dfDafen.评委打分 != null && dfDafen.部门打分 != null)
                                        {
                                            double cos = (tot*0.1)+ (float.Parse(dfDafen.部门打分)*0.65)+ (ros*0.25);
                                            <td>@cos</td>
                                        }
                                        else
                                        {
                                            <td>未完成</td>
                                        }
                                    </tr>
                                }
                            </tbody>
                        </table>
                    </div>
                    @* @model PagedList<dafen>*@
                    @Html.Pager(Model, new PagerOptions { PageIndexParameterName = "id", CurrentPagerItemTemplate = "<span class=\"current\">{0}<span>", DisabledPagerItemTemplate = "<span class=\"disabled\">{0}</span>", Id = "flickrpager" })
                </div>
              </div>
         </div>

		
		   
		   </div>
		   </div>		
	 
	<div id="line"></div> 
	<div id="bottom_info"><div id="b_t_1"><b>相关链接</b><br/>
  专家讨论小组<br/>
设备履历表<br/>
备件库</div>
<div class="b_t_c"> </div>
<div id="b_t_1"><b>关于我们</b><br/>
  关于我们<br/>
联系我们<br/>
版权声明<br/>
我们的目标</div>
<div class="b_t_c"> </div>
<div id="b_t_1"><b>收藏</b><br/>
 加入收藏<br/>
添加到桌面<br/>
加入右键</div>
<div class="b_t_c"> </div>
<div id="b_t_1"><b>我们的点滴进步</b><br/>
 01月14日 研究会<br/>
01月23日 页面改版，后台更新<br/>
02月18日 小组讨论会<br/>
........<br/>
<div style="text-align:left;margin-left:10px; line-height:15px;">Copyright 2015-2018 All Right Reserved. 通信网络中心技术业务室</div>
    </div> </div></div>
  <script type="text/javascript">
      var TabbedPanels1 = new Spry.Widget.TabbedPanels("TabbedPanels1");
  </script>
</body>  

</center>
</html>